package day13;

import java.io.*;

public class PrintWriterDemo {
    public static void main(String[] args) {
        PrintWriter out=null;

        try {
            out=new PrintWriter(new FileWriter("writer.txt",true),true) ;
            out.println("hello");
        } catch (IOException e) {
            e.printStackTrace();
        }finally {
            if (null!=out){
                out.close();
            }
        }

    }
}
